Carbon


MPGetTaskStorageValue

Header: Multiprocessing.h Carbon status: Supported

Gets the storage value stored at a specified index number.

TaskStorageValue MPGetTaskStorageValue (
    TaskStorageIndex index
);
index

The index number of the storage value you want to obtain.

function result

The value stored at the specified index number.0

DISCUSSION

Calling this function from within a task effectively reads a value in a two-dimensional array cross-referenced by task storage index value and the task ID.

Note that since this function does not return any status information, it may not be immediately obvious whether the returned storage value is valid.

Also see the function MPSetTaskStorageValue.

VERSION NOTES

Introduced with Multiprocessing Services 2.0.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when MPLibrary 2.0 or later is installed. Exported by CarbonLib 1.0 and later and by MPLibrary 2.0 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/6/2000)